/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="HMVALORES")
public class HmValoresProteu implements Serializable{

    @Id
    @Column(name="HMV_ST_CODIGO")
    private String hmvStCodigo;
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Column(name="HMV_ST_DESCRICAO")
    private String hmvStDescricao;
    @Column(name="HMV_DT_INICIAL")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date hmvDtInicial;
    @Column(name="HMV_DT_FINAL")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date hmvDtFinal;
    @Column(name="HMV_FL_VALOR")
    private Float hmvFlValor;
    @Column(name="HMV_DT_ALTERACAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date hmvDtAlteracao;
    @Column(name="HMV_ST_USUARIO")
    private String hmvStUsuario;


    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public Date getHmvDtAlteracao() {
        return hmvDtAlteracao;
    }

    public void setHmvDtAlteracao(Date hmvDtAlteracao) {
        this.hmvDtAlteracao = hmvDtAlteracao;
    }

    public Date getHmvDtFinal() {
        return hmvDtFinal;
    }

    public void setHmvDtFinal(Date hmvDtFinal) {
        this.hmvDtFinal = hmvDtFinal;
    }

    public Date getHmvDtInicial() {
        return hmvDtInicial;
    }

    public void setHmvDtInicial(Date hmvDtInicial) {
        this.hmvDtInicial = hmvDtInicial;
    }

    public Float getHmvFlValor() {
        return hmvFlValor;
    }

    public void setHmvFlValor(Float hmvFlValor) {
        this.hmvFlValor = hmvFlValor;
    }

    public String getHmvStCodigo() {
        return hmvStCodigo;
    }

    public void setHmvStCodigo(String hmvStCodigo) {
        this.hmvStCodigo = hmvStCodigo;
    }

    public String getHmvStDescricao() {
        return hmvStDescricao;
    }

    public void setHmvStDescricao(String hmvStDescricao) {
        this.hmvStDescricao = hmvStDescricao;
    }

    public String getHmvStUsuario() {
        return hmvStUsuario;
    }

    public void setHmvStUsuario(String hmvStUsuario) {
        this.hmvStUsuario = hmvStUsuario;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final HmValoresProteu other = (HmValoresProteu) obj;
        if ((this.hmvStCodigo == null) ? (other.hmvStCodigo != null) : !this.hmvStCodigo.equals(other.hmvStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + (this.hmvStCodigo != null ? this.hmvStCodigo.hashCode() : 0);
        return hash;
    }



}
